<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2023-06-05
  Time: 09:03
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<a href="/add">添加</a>
<table border="1">
    <tr>
        <th>考勤编号</th>
        <th>学生编号</th>
        <th>学生姓名</th>
        <th>出勤时间</th>
        <th>出勤状况</th></tr>
    <c:forEach items="${list}" var="xues">
        <tr>
        <td>${xues.aid}</td>
        <td>${xues.sid}</td>
        <td>${xues.sname}</td>
        <td>${xues.time}</td>
        <td><c:if test="${xues.type==1}">
            已到
        </c:if>
            <c:if test="${xues.type==2}">
                迟到
            </c:if>
            <c:if test="${xues.type==3}">
                旷课
            </c:if></td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
